<?php
namespace app\validate;
use think\Validate;

class Payment extends Validate
{
    protected $rule = [
        'id'          =>'require|number|integer',
        'pay_type'    => 'require|number|integer',
        'credentials' => 'require',
        'tradepass' => 'require',
    ];

    protected $message = [
        'id.require' => '订单ID必须',
        'id.number' => '订单ID为数字',
        'id.integer' => '订单ID为整数',
        'pay_type.require' => '支付方式必须选择',
        'pay_type.number' => '支付类型参数必须为数字',
        'pay_type.integer' => '支付类型参数必须为整数',
        'credentials.require' => '凭证必须上传',
        'tradepass.require' => '二级密码不能为空',
    ];
}


